package com.mcv.APNSSupport;

import java.util.ArrayList;
import java.util.List;

public class APNSDeviceFactory {
	
	private  List<APNSDevice>  apnsDevice = new ArrayList<APNSDevice>();

	/**
	 * @return the apnsDevice
	 */
	public List<APNSDevice> getApnsDevice() {
		return apnsDevice;
	}

	/**
	 * @param apnsDevice the apnsDevice to set
	 */
	public void setApnsDevice(List<APNSDevice> apnsDevice) {
		this.apnsDevice = apnsDevice;
	}
	
	public void addDevice(String deviceId,String token, String description) {
		APNSDevice dev = new APNSDevice(deviceId,token,description);
		if (description ==null) {
			dev.setDeviceDecription("Iphone Or Touch Device");
		}
			dev.setDeviceId(deviceId);
			dev.setDeviceToken(token);
			this.apnsDevice.add(dev);
		
	}

}
